#include "include/FramelessWidget/frameless_widget.h"
#include "include/Buttons/loading_button.h"
#include "include/Buttons/loading_button_2.h"

#include <QMainWindow>
#include <QApplication>
#include <QHBoxLayout>
#include <QLabel>
#include <QMovie>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    //GAntUi w;
    //w.show();

	QMainWindow m;
	auto l = new QHBoxLayout(&m);

	auto b = new LoadingButton2(&m);
	b->setIcon(QPixmap(R"(D:\Desktop\favicon.ico)"));
	b->setMovie(R"(D:\Desktop\loading.gif)");
	b->setText("123");
	l->addWidget(b);
	//GAntFramelessWidget w;
	//w.setContentWidget(b);
	////auto l = new QLabel{ "Content!" };
	////l->setStyleSheet("background-color: gray;");
	////w.setContentWidget(l);
	//w.show();
	//w.setFixedSize(400, 500);
	//w.setMinimumSize(200, 300);
	//w.setMoveable(false);
	m.show();
    return a.exec();
}
